<%= render :partial => 'spree/admin/shared/slideshow_sub_menu' %>
<%= render :partial => 'spree/admin/shared/slideshow_tabs', :locals => { :current => 'Slides' } %>

<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @slide } %>

<% content_for :page_actions do %>
  <li><%= button_link_to t(:back_to_slides_list), admin_slideshow_slides_url(@slideshow), :icon => 'icon-arrow-left' %></li>
<% end %>

<%= form_for [:admin, @slideshow, @slide], :html => { :multipart => true } do |f| %>
  <fieldset data-hook="edit_image">
    <legend align="center"><%= @slide.attachment_file_name%></legend>
    <div data-hook="thumbnail" class="field alpha three columns align-center">
      <%= f.label t(:thumbnail) %><br>
      <%= link_to image_tag(@slide.attachment.url(:mini)), @slide.attachment.url(:large) %>
    </div>
    <div class="nine columns omega">
      <%= render :partial => 'form', :locals => { :f => f } %>  
    </div>
    <div class="clear"></div>
    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button t(:update), 'icon-refresh' %>
      <span class="or"><%= t(:or) %></span>
      <%= link_to t(:cancel), admin_slideshow_slides_url(@slideshow), :id => 'cancel_link', :class => 'button icon-remove' %>
    </div>
  </fieldset>
<% end %>
